package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yl.auth.model.entity.RuyuanfeiBean;
import com.yl.auth.mapper.RuyuanfeiMapper;
import com.yl.auth.service.RuyuanfeiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 王帅洋
 * @belongsProject: ln-ylHouse
 * @belongsPackage: com.ln.auth.service.impl
 * @Date 2023/6/16 15:51
 * @Description: TODO
 * @Version: 1.0
 */
@Service
public class RuyuanfeiServiceImpl extends ServiceImpl<RuyuanfeiMapper, RuyuanfeiBean> implements RuyuanfeiService {
    @Resource
    private RuyuanfeiMapper ruyuanfeiMapper;


    @Override
    public IPage<RuyuanfeiBean> selectpage(Page<RuyuanfeiBean> page, RuyuanfeiBean ruyuanfeiBean) {
        IPage<RuyuanfeiBean> selectpage = ruyuanfeiMapper.selepage(page, ruyuanfeiBean);
        return selectpage;
    }

    @Override
    public RuyuanfeiBean getById(Long id) {
        RuyuanfeiBean ruyuanfeiBean = ruyuanfeiMapper.getById(id);
        return ruyuanfeiBean;
    }

    @Override
    public RuyuanfeiBean getByIds(Long id) {
        RuyuanfeiBean ruyuanfeiBean = ruyuanfeiMapper.getByIds(id);
        return ruyuanfeiBean;
    }
}
